//
//  MANoteImageCell.m
//  meiang_edu
//
//  Created by 栋 on 2018/10/18.
//  Copyright © 2018年 com.meiang.meiang_edu. All rights reserved.
//

#import "MANoteImageCell.h"

@interface MANoteImageCell()
@property (weak, nonatomic) IBOutlet UIImageView *imgShow;


@end

@implementation MANoteImageCell
//设置数据
- (void)setDataWithModel:(MANoteImageModel *)model{
    if (model.url) {
        [self.imgShow ma_setImageWithURL:model.url placeholderImage:model.placeholderImage];
    }else if (model.selectedImage){
        self.imgShow.image = model.selectedImage;
    }else{
        self.imgShow.image = model.placeholderImage;
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.imgShow.backgroundColor =[UIColor redColor];
}

@end
